package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Name   string  `gorm:"type:varchar(20);not null;comment:'商品名称'"`
	Price  float64 `gorm:"type:decimal(10,2);not null;comment:'商品价格'"`
	Num    int     `gorm:"type:int(10);not null;comment:'商品数量'"`
	Image  string  `gorm:"type:varchar(255);not null;comment:'商品图片'"`
	Intro  string  `gorm:"type:varchar(100);not null;comment:'商品描述'"`
	UserId int     `gorm:"type:int(10);not null;comment:'用户Id'"`
}
